package com.cx.service;

import com.cx.pojo.Critic;

import java.util.List;

public interface CriticService {

    int insert(Critic critic);

    int updateById(Integer criticId,Critic critic);

    int deleteById(Integer criticId);

    Critic selectById(Integer criticId);

    //根据文章id搜索且根据赞数排列评论
    List<Critic> selectByPostId(Integer psotId);

    //根据当前用户id来搜寻他的所有评论
    List<Critic> selectByUserId(Integer userId);
}
